from django.urls import re_path
from . import views

urlpatterns = [
    re_path(r'^register/$', views.RegisterAPIView.as_view()),
    re_path(r'^login/$', views.LoginAPIView.as_view()),
    re_path(r'^users/userinfo/$', views.UserViewSet.as_view({
        "get": "get_one",
        "patch": "update_baseinfo"
    })),
    re_path(r'^users/password/$', views.UserViewSet.as_view({"patch": "update_password"})),
    re_path(r'^users/avatar/$', views.UserViewSet.as_view({"patch": "update_avatar"})),
]
